using System.Threading.Tasks;
using JlPay.Sdk.Core;
using JlPay.Sdk.Models.Openmerch.Wechat;

namespace JlPay.Sdk.Services.Openmerch.Wechat
{
    /// <summary>
    /// 微信实名认证查询服务
    /// </summary>
    public class WechatRealnameQueryService : BaseService
    {
        /// <summary>
        /// 构造函数
        /// </summary>
        /// <param name="config">配置对象</param>
        public WechatRealnameQueryService(Config config) : base(config)
        {
        }

        /// <summary>
        /// 查询微信实名认证
        /// </summary>
        /// <param name="request">微信实名认证查询请求</param>
        /// <returns>微信实名认证查询响应结果</returns>
        public async Task<RealnameWxQueryResponse> QueryRealnameWxAsync(RealnameWxQueryRequest request)
        {
            return await PostAsync<RealnameWxQueryRequest, RealnameWxQueryResponse>(request, RealnameWxQueryRequest.API_URL);
        }
    }
} 